package com.nwpu.coursesupport.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nwpu.coursesupport.entity.bean.BaseEntity;
import com.nwpu.coursesupport.enumeration.RoleType;

public class ClassStudent extends BaseEntity {
	
	private Integer courseId;
	private Integer classId;
    private Integer studentId;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date joinDate;
    private double theoryTestGrade;
    private double labTestGrade;
    private double dailyGrade;
    private double taskTotalGrade;
    private double finalTotalGrade;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateDate;
    private Integer updateOperatorId;
    private String updateOperatorName;
    private RoleType roleType;
    /**
	总成绩计算公式: 
		final_total_grade=
				task_total_grade  * task_grade_radio
			 +	theory_test_grade * theory_grade_radio
			 +	lab_test_grade	  * lab_grade_radio
			 +	daily_grade       * daily_grade_radio
		******theory_grade_radio | lab_grade_radio | daily_grade_radio�ֶ���ʦ�ڿγ̱���ָ��***
		task_total_grade=
				task1 * radio1
			+	task2 * radio2
					.
					.
					.
			+   taskN * radioN	

		******radioN:表示任务的计算比例******
	**/
	public Integer getCourseId() {
		return courseId;
	}
	public void setCourseId(Integer courseId) {
		this.courseId = courseId;
	}
	public Integer getStudentId() {
		return studentId;
	}
	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}
	public Date getJoinDate() {
		return joinDate;
	}
	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}
	public double getTheoryTestGrade() {
		return theoryTestGrade;
	}
	public void setTheoryTestGrade(double theoryTestGrade) {
		this.theoryTestGrade = theoryTestGrade;
	}
	public double getLabTestGrade() {
		return labTestGrade;
	}
	public void setLabTestGrade(double labTestGrade) {
		this.labTestGrade = labTestGrade;
	}
	public double getDailyGrade() {
		return dailyGrade;
	}
	public void setDailyGrade(double dailyGrade) {
		this.dailyGrade = dailyGrade;
	}
	public double getTaskTotalGrade() {
		return taskTotalGrade;
	}
	public void setTaskTotalGrade(double taskTotalGrade) {
		this.taskTotalGrade = taskTotalGrade;
	}
	public double getFinalTotalGrade() {
		return finalTotalGrade;
	}
	public void setFinalTotalGrade(double finalTotalGrade) {
		this.finalTotalGrade = finalTotalGrade;
	}
	public Date getUpdateDate() {
		return updateDate;
	}
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}
	public Integer getUpdateOperatorId() {
		return updateOperatorId;
	}
	public void setUpdateOperatorId(Integer updateOperatorId) {
		this.updateOperatorId = updateOperatorId;
	}
	public RoleType getRoleType() {
		return roleType;
	}
	public void setRoleType(RoleType roleType) {
		this.roleType = roleType;
	}
	public Integer getClassId() {
		return classId;
	}
	public void setClassId(Integer classId) {
		this.classId = classId;
	}
	public String getUpdateOperatorName() {
		return updateOperatorName;
	}
	public void setUpdateOperatorName(String updateOperatorName) {
		this.updateOperatorName = updateOperatorName;
	}
	
}